Error: Illegal file name "'+imgparts[2]+'"; must match "\w[\w-]*\.*[\w-]*"